home *** CD-ROM | disk | FTP | other *** search
- /*
- *
- * Script name: GetTitle.ced
- * Author: Franz Hemmer
- * Purpose: Demonstrate how to get Watcher title bar text, and put
- * it into the current cursor position in Cygnus Ed.
- * Written: 25.11.92
- * Comments: You need to have Watcher and CED running.
- *
- */
-
- Options FailAt 100
- Options Results
- address WATCHER1 /* Address Watcher's ARexx port. */
- lf = '0A'x
-
- /*
- * Try to read the window title bar
- */
- ADDRESS WATCHER1 GetTitle
- IF rc > 0 THEN
- SAY 'Error was 'WATCHER.LASTERROR
- ELSE DO
- ADDRESS 'rexx_ced' text result || lf
- END
-